<%@ page language="java" import="org.nus.*,java.util.*"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<html:base />

		<title>Delete User</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="CSS/divs.css">

	</head>

	<body>
		<div id="row1">
			<center>
				<img src="images/gpsbanner.jpg" alt="" name="Banner" width="950"
					height="100" id="Banner" />
			</center>
		</div>

		<!-- Code to delete user -->
		<%
					DBDisplayer displayer = (DBDisplayer) session
					.getAttribute("dbconn");
			String username = request.getParameter("delUsername");
			displayer.deleteUser(username);
		%>
		<h2 align="center">

			<%=username%>
			has been deleted!
		</h2>
		<div id="Menu">
			<a href="viewall.jsp" title="List all data">Home</a>
			<br />
			<a href="clickone.jsp" title="Show data on map">Map View</a>
			<br />
			<a href="adduser.jsp" title="Show/add users">Show/Add User</a>
			<br />
			<a href="contact.html" title="Contact us">Contact</a>
			<br />
			<a href="logout.do" title="Log Out">Log out</a>
		</div>

	</body>
</html>
